#include "win32oglRenderer.h"


USING_NAMESPACE_OXGE


//////////////////////////////////////////////////////////////////////////
void Win32oglRenderer::StartRender()
{ 

}

void Win32oglRenderer::EndRender()
{
	
}


void Win32oglRenderer::Initialize(HDC hdc, int pixelFormat)
{	
	if( !SetPixelFormat(hdc,pixelFormat,NULL) ) 
		return;

	HGLRC hglrc = wglCreateContext(hdc);
	if( hglrc == NULL )
		return ;

	m_pMainContex = new Win32oglContext(hdc, hglrc);
		
	oglRenderer::Initialize();
}